package com.iot08.common.entity.app;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * @author cwj 用户金币的购买订单
 * @description
 * @date 2025/3/9 11:43
 **/
@Data
@Document("user_buyer_order")
public class GoldCoinBuyerOrder implements Serializable {

    @Id
    private String id;

    //用户id
    private String openid;

    //购买订单的总花费
    private Integer costGoldCoinTotal;

    //支付时间
    private String paymentTime;

    //订单支付状态，0：未支付，1：已支付，2：支付失败，3：已退款
    private Integer orderStatus;

    //用户支付前的金币余额
    private Integer goldCoinBalanceBefore;

    //用户支付后的金币余额
    private Integer goldCoinBalanceAfter;

    private Date createTime;

    private Date updateTime;

}
